<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:th="http://www.thymeleaf.org">
    <head th:fragment="head">
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width" />
    <meta name="author" content="www.lzqcode.com" />
    <meta name="robots" content="all" />
    <title>云易校园论坛</title>
    <link rel="stylesheet" th:href="@{../static/desk/font-awesome/css/font-awesome.min.css}">
    <link rel="stylesheet" th:href="@{../static/desk/layui/css/layui.css}" />
    <link rel="stylesheet" th:href="@{../static/desk/css/master.css}" />
    <link rel="stylesheet" th:href="@{../static/desk/css/gloable.css}" />
    <link rel="stylesheet" th:href="@{../static/desk/css/nprogress.css}" />
    <link rel="stylesheet" th:href="@{../static/desk/css/blog.css}" />
    <script th:src="@{../static/desk/layui/layui.js}"></script>
    <script th:src="@{../static/desk/js/yss/gloable.js}"></script>
    <script th:src="@{../static/desk/js/plugins/nprogress.js}"></script>
    <script th:src="@{../static/desk/js/yss/article.js}"></script>
    <script>NProgress.start();</script>
</head>
<body>
    <div class="header">
    </div>
    <header class="gird-header" th:fragment="header">
        <div class="header-fixed">
            <div class="header-inner">
                <a href="javascript:void(0)" class="header-logo" id="logo" style="font-size: 40px">YunYi</a>
                <nav class="nav" id="nav">
                    <ul>
                        <li><a th:href="@{/article/list}">帖子</a></li>
                        <li><a th:href="@{/plate/list}">板块</a></li>
                        <li><a th:href="@{/answerQuestions/list?type=0}">话题</a></li>
                        <li><a th:href="@{/message/list}">留言</a></li>
                        <li><a th:href="@{/resource/list}">资源下载</a></li>
<!--						<li th:if="${loginUser != null && loginUser.status == 1}"><a th:href="@{../../static/desk/diary.html}">日记</a></li>-->
                        <li><a th:href="@{/link/list}">友链</a></li>
                        <li th:if="${loginUser == null || loginUser.status != 1}"><a th:href="@{/login}" target="_blank">登录</a></li>
                        <li th:if="${loginUser == null || loginUser.status != 1}"><a th:href="@{/register}" target="_blank">注册</a></li>
                    </ul>

                </nav>
                <div class="blog-user" th:if="${loginUser != null && loginUser.status == 1}">
                    <ul class="layui-nav" style="background-color: white;" lay-filter="">
                        <li class="layui-nav-item">
                            <a  href="javascript:;" style="color: black;" >
                                <img th:src="${loginUser.avatarUrl}" style="color: black" class="layui-nav-img" />
                                <span th:text="${loginUser.realName}"></span>
                            </a>
                            <dl class="layui-nav-child">
                                <dd><a th:href="@{/back/index}" target="_blank">后台管理</a></dd>
                                <dd><a th:href="@{/user/setting/password}">修改密码</a></dd>
                                <dd><a th:href="@{/logout}">退出</a></dd>
                            </dl>
                        </li>
                    </ul>
                </div>
                <a class="phone-menu">
                    <i></i>
                    <i></i>
                    <i></i>
                </a>
            </div>
        </div>
    </header>

    <nav style="text-align: center" th:if="${page.rows>0}" th:formaction="pagination">
        <div class="layui-box layui-laypage layui-laypage-default" id="layui-laypage-2">
            <a th:href="@{${page.path}(current=1)}" class="layui-laypage-prev" data-page="1">首页</a>
            <a th:href="@{${page.path}(current=${page.current-1})}" th:class="|layui-laypage-prev ${page.current==1?'layui-disabled':''}|" data-page="">上一页</a>
            <div style="display: inline-block" th:each="i:${#numbers.sequence(page.from,page.to)}">
                <a th:href="@{${page.path}(current=${i})}" th:class="|${i==page.current?'layui-laypage-curr':''}|" >
                    <em class="layui-laypage-em"></em>
                    <em th:text="${i}"></em>
                </a>
            </div>
            <a th:href="@{${page.path}(current=${page.current+1})}" th:class="|layui-laypage-next ${page.current==page.total?'layui-disabled':''}|" data-page="">下一页</a>
            <a th:href="@{${page.path}(current=${page.total})}" class="layui-laypage-next" data-page="">末页</a>
        </div>
    </nav>

    <footer class="grid-footer" th:fragment="footer">
        <div class="footer-fixed">
            <div class="copyright">
                <div class="info">
                    <div class="contact">
                        <a th:href="@{../../static/desk/javascript:void(0)}" class="github" target="_blank"><i class="fa fa-github"></i></a>
                        <a th:href="@{../../static/desk/https://wpa.qq.com/msgrd?v=3&uin=930054439&site=qq&menu=yes}" class="qq" target="_blank" title="930054439"><i class="fa fa-qq"></i></a>
                        <a th:href="@{../../static/desk/https://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&email=gbiysbG0tbWyuMHw8K-i7uw}" class="email" target="_blank" title="930054439@qq.com"><i class="fa fa-envelope"></i></a>
                        <a th:href="@{../../static/desk/javascript:void(0)}" class="weixin"><i class="fa fa-weixin"></i></a>
                    </div>
                    <p class="mt05">
                         Copyright &copy; 2020-2021 云易校园博客 by Mr.Mo
                    </p>
                </div>
            </div>
        </div>
    </footer>
    <template th:fragment="script">
        <script th:src="@{../static/desk/layui/layui.js}"></script>
        <script th:src="@{../static/desk/js/yss/gloable.js}"></script>
        <script th:src="@{../static/desk/js/plugins/nprogress.js}"></script>
        <script>NProgress.start();</script>
        <script th:src="@{../static/desk/js/yss/article.js}"></script>
    </template>
    <script>
        window.onload = function () {
            NProgress.done();
        };
        layui.use('element', function(){
            var element = layui.element;

            //…
        });
    </script>
</body>
</html>
